package com.course.design.exception;

import com.course.design.common.ResultCode;

/**
 * 描述:
 *
 * @author qinlianji
 * @create 2020-03-22
 */
public class ExecuteException extends RuntimeException {

    private int errCode = ResultCode.Unknown_Exception.getCode();

    public ExecuteException() {
        super(ResultCode.Unknown_Exception.getMessage());
    }

    public ExecuteException(ResultCode resultCode) {
        super(resultCode.getMessage());
        this.errCode = resultCode.getCode();
    }

    public int getErrCode() {
        return errCode;
    }

    public void setErrCode(int errCode) {
        this.errCode = errCode;
    }

}
